package com.spzx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spzx.product.api.domain.VO.CategoryVO;
import com.spzx.product.api.domain.Category;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface CategoryService extends IService<Category> {
    public List<Category> getListByFatherId(Long id) ;
    public List<Long> getFatherIdList(Long id);
    public String getNameById(Long id);

    boolean importCategory(MultipartFile file);

    Boolean exists(Category category);

    void exportCategory(HttpServletResponse response) ;

    void importTemplate(HttpServletResponse response);

    List<CategoryVO> getFirstCategoryList(long id);

    List<CategoryVO> getCategoryTree();
}
